from django.test import TestCase
from django.urls import reverse


class HealthViewTests(TestCase):
    def test_health(self):
        resp = self.client.get(reverse('interview-health'))
        self.assertEqual(resp.status_code, 200)
        self.assertEqual(resp.json().get('status'), 'ok')
